package com.puge.cmssservice;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author by sun
 * @date 2021/6/29.14:40
 */

@SpringBootApplication
@EnableDiscoveryClient    //nacos注册
@ComponentScan({"com.puge"}) //指定扫描位置
@MapperScan("com.puge.educmss.mapper")  //添加扫描接口文件的注解和对应地址，可以使类启动时扫描到接口
public class CmssApplication {
    public static void main(String[] args) {
        SpringApplication.run(CmssApplication.class,args);
    }
}
